FROM python:3.10-alpine

RUN mkdir /opt/faiss-flask
WORKDIR /opt/faiss-flask

RUN mkdir /var/log/faiss-flask

COPY requirements.txt .
#COPY condarc /root/.condarc

# only prod use, for bin/faiss-flask.sh
RUN pip install uwsgi
RUN pip install -r requirements.txt

COPY bin bin
COPY src src
COPY data data

ENTRYPOINT ["bin/faiss-flask.sh"]
